﻿using System;
using System.Security.Cryptography;
using System.Text;
namespace AppEszköz.Cryptography
{
    public sealed class SHA1Encryption
    {
        private SHA1Encryption()
        {
        }

        public static string Encrypt(string plaintext)
        {
            return Convert.ToBase64String(new SHA1Managed().ComputeHash(new UnicodeEncoding().GetBytes(plaintext)));
        }
    }
}